import config from "@/config"
import http from "@/utils/request"

export default {
	token: {
		url: `${config.API_URL}/token`,
		name: "登录获取TOKEN",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
    repassword:{
        url: `${config.API_URL}/repassword`,
        name: "重置密码",
        post: async function(data){
            return await http.post(this.url, data);
        }
    },
    logout:{
        url: `${config.API_URL}/logout`,
        name: "登出",
        post: async function(data){
            return await http.post(this.url, data);
        }
    },
}
